<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <audio src="" controls></audio>
  </body>
  <script>
    // function counter() {
    //   let second = 0
    //   function doCounter() {
    //     if (second === 10) {
    //       clearInterval(recordSecond)
    //       console.log('倒计时结束')
    //       return
    //     }
    //     second += 1
    //     console.log(`${second}秒`)
    //   }
    //   return doCounter
    // }
    // const doCountFn = counter()
    // const recordSecond = setInterval(function() {
    //   doCountFn()
    // }, 1000)
  </script>
</html>
